//
//  RNTPolyvLive.h
//  rzc_app
//
//  Created by 孙磊 on 2019/8/30.
//  Copyright © 2019 Facebook. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <PLVLiveAPI/PLVLiveAPI.h>
#import <PLVLiveAPI/PLVLiveConfig.h>
#import <React/RCTComponent.h>
#import <React/RCTBridgeModule.h>

NS_ASSUME_NONNULL_BEGIN
@class RCTEventDispatcher;

@interface RNTPolyvLive : UIView

@property (nonatomic, strong) NSDictionary *liveWarm;
@property (nonatomic, copy) NSString *vidWarmVideo;
@property (nonatomic, strong) NSString *userId;
@property (nonatomic, copy) NSString *startTime;
@property (nonatomic, strong) PLVLiveChannel *liveChannel;
@property (nonatomic, copy) RCTBubblingEventBlock onPlayLiveEvent;
- (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER;
- (void)updateLiveChanel;
- (void)freePlayer;
@end

NS_ASSUME_NONNULL_END
